import baseUrl from './baseUrl.js'

export const getAllAcademy = () => {
	return new Promise((res,rej)=>{
		uni.request({
			url:baseUrl + '/academy/getAllAcademy',
			method:'GET',
			data:{},
			header:{
				'token': uni.getStorageSync('token')
			},
			success(response) {
				res(response)
			},
			fail(err) {
				rej(err)
				uni.showToast({
					title:'获取数据失败',
					icon:'error'
				})
			}
		})
	})
}